<template>
    <div>
        index
        <el-button @click="serviceVisible = true">服务</el-button>
        <el-button @click="bidVisible = true">报价</el-button>
        <dialogBuy :supplyDemandType="'CAPABILITY_SERVICE'" @dialogCallback="sDialogCallback" :s-dialog-show="serviceVisible" ></dialogBuy>
        <bidding :supplyDemandType="'CAPABILITY_SERVICE'" @dialogCallback="bidDialogCallback" :bid-dialog-show="bidVisible" ></bidding>
    </div>
</template>
<script lang="ts">
import {Vue, Component} from 'nuxt-property-decorator'
import dialogBuy from "~/components/service/dialogBuy.vue"
import bidding from "~/components/demand/bidding.vue"
@Component({
    layout: 'qiao',
    components: {
        dialogBuy,
        bidding
    }
})
// supplyDemandType==='CAPABILITY_SERVICE'?'方案描述':'设备信息'
export default class Index extends Vue {
    serviceVisible:Boolean = false
    bidVisible:Boolean = false
    sDialogCallback (data: boolean) {
        this.serviceVisible = data
    }
    bidDialogCallback (data: boolean) {
        this.bidVisible = data
        console.log(data)
    }
}
</script>
